package com.liyang.microservice.service.controller;


import com.liyang.microservice.service.service.api.ConsumerService4;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liyang
 * @version 1.0
 * @Title: MyController
 * @description TODO
 * @date 2021/4/26 17:39
 */
@RestController
public class MyController {

    @Autowired
    ConsumerService4 consumerService4;

    @RequestMapping("/hello")
    public String helloName() {
        return consumerService4.service();
    }

}